/*
 * @Author: your name
 * @Date: 2021-06-01 09:40:03
 * @LastEditTime: 2021-06-01 15:37:27
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \Node阶段实战\初始代码\后台初始代码\assets\js\index.js
 */


$('.layui-header').on('click', function () {
  layer.confirm('要走了吗,憨憨?', { icon: 3, title: '提示' }, function (index) {
    location.href = './login.html';
    localStorage.removeItem('mytoken');
    layer.close(index);
  });

})